import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'processStatus'
})
export class ProcessStatusPipe implements PipeTransform {

  transform(value: number | undefined, ...args: unknown[]): string {
    switch (value) {
      case 0: return '未完成';
      case 1: return '已完成';
      case 2: return '进行中';
      default: return '未知';
    }
  }

}
